import Vue from 'vue'
import VueRouter from 'vue-router'
import UserLogin from '../views/UserLogin'
import UserList from '../views/UserList'
import AddShop from '../views/AddShop'
Vue.use(VueRouter)

const routes = [
  {path: '/',redirect:'/login'},
  {path: '/login',component:UserLogin},
  {path: '/UserList',component: UserList},
  {path: '/AddShop',component: AddShop}
]

const router = new VueRouter({
  routes
})

export default router
